<div ng-class="{'dropup':upPosition, 'dropDown':!upPosition}" style="position: relative;width: 120px;" >
    <div class="form-control form-control-s dropdown-toggle" ng-click="toggleDropDown()">
        {{selectedTemplate.TemplateName || '请选择打印模板'}}
    </div>
    <div class="dropdown-content dropdown-content-s m-t-none" ng-if="enablePopup" style="line-height: 30px;" ng-mouseleave="cancel()">
        <ul class="pop-ul">
            <li ng-repeat="item in TemplateLists track by $index" ng-click="selectTemplateItem(item)">
                {{item.TemplateName}}
            </li>
        </ul>
        <a class="btn-add" ng-click="addPrintTemplate()"><i class="fa fa-plus"></i> 添加模板</a>
    </div>
</div>